package com.example.service.impl;

import com.example.entity.City;
import com.example.mapper.WorldMapper;
import com.example.service.SearchCityInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SearchCityInfoImpl implements SearchCityInfo {

    @Autowired
    private WorldMapper worldMapper;
    @Override
    public List<City> searchCityInfo() {
        List<City> cities = worldMapper.selectAll();
        return  cities;
    }
}
